package com.riddle.service;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSession;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.riddle.dao.BaseDao;
import com.riddle.dao.PermissionDao;
import com.riddle.model.Permission;

@Service
@Scope("prototype")  
public class PermissionService extends BaseService<Permission> {

	@Resource
	private PermissionDao permissionDao;
	
	protected  BaseDao getDao() {
		return permissionDao;
	}
	
	public List<Permission> getPermissionTree(){
		return permissionDao.getPermissionTree();
	}
}